package com.sleep.ws.client.core;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用消息处理实体类
 * @author Sleep-6000
 * @date 2024/3/8
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebSocketMessageInfo {

    /**
     * 消息的ID
     */
    private String id;

    /**
     * 消息类型
     */
    private String type;

    /**
     * set-设置 clear-清理
     */
    private String action;

    /**
     * 消息KEY
     */
    private String key;

    /**
     * 消息内容
     */
    private Object value;
}
